package com.yykj.user.center.server.service.patient;

import com.yykj.common.vo.PageData;
import com.yykj.user.center.client.dto.PatientInfoDto;
import com.yykj.user.center.server.dto.PatientCardInfoDTO;
import com.yykj.user.center.server.dto.PatientDTO;
import com.yykj.user.center.server.dto.UserLoginInfo;
import com.yykj.user.center.server.form.DisablePatient;
import com.yykj.user.center.server.form.RegisterForm;
import com.yykj.user.center.server.form.RelaceAvatarForm;
import com.yykj.user.center.server.form.UserLoginForm;

import java.util.List;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/10/20 22:18
 */
public interface LoginService {

    UserLoginInfo login(UserLoginForm form);

    Boolean isRegister(UserLoginForm form);

    String getCode(String mobile);

    UserLoginInfo register(RegisterForm registerForm);

    UserLoginInfo codeLogin(UserLoginForm form);

    Boolean replaceAvatar(RelaceAvatarForm relaceAvatarForm);

    PageData<PatientDTO> getByHospitalId(Integer current, Integer size, String name, String mobile, Integer hospitalId);

    Boolean disable(DisablePatient disablePatient);

    List<PatientCardInfoDTO> getRelation(String id);

    PatientInfoDto patientInfo(String patientId);

}
